<html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>WaitUntil options test</title>
    </head>
    <body>
        <script>
            window.results = [];
            window.addEventListener('load', (event) => {
                window.results.push("load");
            });
            document.addEventListener('DOMContentLoaded', (event) => {
                window.results.push("DOMContentLoaded");
            });
        </script>
    </body>
</html>